home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / tktdoc / trouble.doc < prev    next >
Encoding:
Text File  |  1994-08-11  |  4.0 KB  |  157 lines

  1. TROUBLESHOOTING
  2.  
  3. Problem / Possible Solution
  4.  
  5. Problem:
  6.  
  7. Unexplained undefined externals at link time.
  8.  
  9. Possible Solution(s):
  10.  
  11. The library path for your compiler is not set properly.
  12.  
  13. The order of the libraries in the link is incorrect.
  14. The libraries need to be linked in order of highest to lowest precedence
  15. in the link. Mrm and Xm would be first and X.lib would be last. See
  16. a sample makefile.
  17.  
  18. The unresolved external "_edata" is fixed by
  19. adding the XGLU linker -DOSSEG option.
  20.  
  21. Problem:
  22.  
  23. Translation table warnings upon application startup.
  24.  
  25. Need a new \dvx\lib\x11\xkeysymd.res file.
  26.  
  27. Problem:
  28.  
  29. Linking is very slow.
  30.  
  31. Possible Solution(s):
  32.  
  33. If you are linking large libraries that are compiled
  34. with debugging information the link will be slow.
  35.  
  36. Linking and Compiling with GNU is very slow.
  37.  
  38. Your DOS window needs to be nominally 500KB in size.
  39. Run optimize and examine your config.sys and autoexec.bat to find
  40. ways not to waste memory.
  41.  
  42. Change the DVP file for your DOS window to allow 8-16MB
  43. of expanded memory usage. You must, of course, have that RAM available.
  44.  
  45. Problem:
  46.  
  47. Compiler or linker stops due to lack of memory.
  48.  
  49. Possible Solution(s):
  50.  
  51. Check the DVP file for the DOS window that you are using
  52. and increase the amount of expanded memory to accomodate.
  53.  
  54. Problem:
  55.  
  56. Program doesn't compile with MetaWare due to duplicate
  57. definition of "sleep()".
  58.  
  59. Possible Solution(s):
  60.  
  61. In Metaware version 3.2. the sleep() function is defined
  62. in both unistd.h and stdlib.h. This will be fixed in a future release.
  63. In the mean time, you can comment out the protype for sleep() in \highc\inc\stdlib.h.
  64.  
  65. Problem:
  66.  
  67. The Uil.exe appears to execute but doesn't produce a
  68. .uid output file or the Uil.exe doesn't execute.
  69.  
  70. Possible Solution(s):
  71.  
  72. Uil.exe will only run properly inside of DESQview/X
  73. because it relies on DESQview/X system library routines that require
  74. DESQview.
  75.  
  76. Problem:
  77.  
  78. DJGPP go32 programs crash upon startup.
  79.  
  80. Possible Solution(s):
  81.  
  82. If you have an old DJGPP intallation, you may have go32.exe
  83. in several places on your disk and they may be in your path.  Find
  84. all of the old ones and delete them.
  85.  
  86. Problem:
  87.  
  88. Programs crash upon startup.
  89.  
  90. Possible Solution(s):
  91.  
  92. The program stack is too small. Initially increase the
  93. stack to be very large. If it fixes the problem decrease the stack
  94. to an appropriate value.
  95.  
  96. The program bitmaps need to be in \<dvxdir>\include\x11\bitmaps.
  97.  
  98. Resource file is required by app, but it is not found.
  99.  
  100. The \dvx\lib\x11\nls directory is missing. It gets installed
  101. with DVX2.0 and this toolkit.
  102.  
  103. The Resource file is in \dvx\app-defa but it is not being
  104. picked up at app startup.
  105.  
  106. The home environment variable is overriding the default
  107. resource file location. Unset home and try it again or copy.
  108.  
  109. Problem:
  110.  
  111. The DESQview/X window manager doesn't stack Motif dialog
  112. boxes and child windows properly.
  113.  
  114. Possible Solution(s):
  115.  
  116. Add "WM.MOTIF   +" to the wm.cfg file.  This
  117. will tell the DESQview/X Window manager to have Motif Window manager
  118. behavior.
  119.  
  120. Problem:
  121.  
  122. Unexplained duplicately defined global data warnings
  123. by WLINK.
  124.  
  125. Possible Solution(s):
  126.  
  127. Externals are only case sensitive if you use the "caseexact"
  128. option with WLINK.
  129.  
  130. Problem:
  131.  
  132. Makefiles do not execute properly.
  133.  
  134. Possible Solution(s):
  135.  
  136. There are not hard tabs on action lines, use the -x
  137. switch with QMAKE or add the hard tabs.
  138.  
  139. The action line exceeds your DOS shell command line
  140. maximum length.
  141.  
  142. Problem:
  143.  
  144. Watcom 10.0 executables have unexplained random crashes
  145. upon startup or at other times. This problem may occur in the xlsfonts,
  146. editres and periodic demos or other programs that use the qsort()
  147. function.
  148.  
  149. Possible Solution(s):
  150.  
  151. There is a bug in the Watcom 10.0 \watcom\lib386\dos\clib3s.lib
  152. qsort() function which is causing the problem. Substitute another
  153. qsort.obj on your link line. Contact Watcom for information on how
  154. to obtain patch level A for the Watcom 10.0 compiler which contains
  155. the fix.
  156.  
  157.